Install cPanelWHM on Red Hat Enterprise Linux
The most widely used web hosting control panel for Linux operating systems is cPanel/WHM. You can effortlessly manage your web hosting environment with cPanel/WHM without the need for additional technical knowledge. In this article, you will learn how to install cPanel/WHM on Red Hat Enterprise Linux (RHEL).
It is possible to use cPanel/WHM to manage any web hosting server if you have a basic understanding of networking and hosting. So, if you are a newbie, do not miss this tutorial and review all the required steps to install cPanel on Red Hat (RHEL).
Table of Contents​
- What is cPanel/WHM & Who Must Use it?
- Supported Operating Systems
- Is Red Hat Enterprise & Linux the Same?
- Prerequisites to Install cPanel/WHM on Red Hat
- Tutorial: cPanel/WHM Installation on Red Hat Enterprise Linux
What is cPanel/WHM & Who Must Use it?​
The most well-liked and often used control panel for organizing and automating web hosting activities is cPanel. With a very straightforward and intuitive graphical layout, it is the most user-friendly control panel in the entire world. A web browser is used to access the cPanel web hosting control panel, which has a three-tier structure for system administrators, resellers, and end-user website owners.
cPanel offers command line access and API-based access for third-party software integration, allowing web hosting companies, developers, and administrators to automate their system administration procedures. These features are in addition to the stunning user interface. In order to set all of their services—including a database, file manager, email account creation and management, dynamic data backup, subdomain creation, and WordPress installation—web hosting companies offer this robust control panel.
The web hosting admin panel known as WHM, or Web Host Manager, enables the hosting company to manage the accounts of its customers. In actuality, it concurrently oversees a number of cPanel-based websites. Other users can purchase hosting space from WHM, and this server might provide you with characteristics like fast bandwidth and large space that are more valuable than you might have anticipated. When managing several sites, you can divide your server into different hosts with WHM and give each one-to-one user administrative access. This gives you greater freedom and control.
Supported Operating Systems​
cPanel supports the following operating systems:
- CentOS 6 and Red Hat Enterprise Linux 6
- CentOS 8
- CloudLinux 6
- CentOS 7, Red Hat Enterprise Linux 7, CloudLinux 7
- Ubuntu 20.04 LTS
- CloudLinux 8
- AlmaLinux OS 8
Is Red Hat Enterprise & Linux the Same?​
Initially, Red Hat successfully supported a unique Linux distribution known as "Red Hat® Linux." Red Hat Linux has become linked with success and dependability in the minds of many users. Red Hat’s technology and solutions have since expanded on this success to cover almost all facets of the IT stack. A Linux distribution is curated, secured, and supported by Red Hat. This Linux distribution is now known as Red Hat Enterprise Linux after merging with the Fedora Linux Project in 2003. Red Hat Enterprise Linux is currently used to support and power software and technologies for automation, cloud, containers, middleware, storage, application development, microservices, virtualization, management, and other purposes.
As the foundation of many of Red Hat’s offerings, Linux plays a significant role. Linux has a much larger purpose than just being a server operating system; it serves as the cornerstone of the current IT stack. Linux is an operating system kernel, a basic building block. A particular operating system that is based on the Linux kernel is Red Hat Enterprise Linux, or RHEL for short. Linux is never a thing in and of itself; it requires an OS to do anything.
Prerequisites to Install cPanel/WHM on Red Hat​
Make sure you meet the following requirements before installing cPanel/WHM on your system.
- Buy Linux VPS running Red Hat.
- At least 1 GB RAM.
- At least 20 GB Hard Disk.
- cPanel License. (Will be explained in this guide)
- Perl & Curl Installed.
- Standard hostname Fully Qualified Domain Name (FQDN).
- Static IPv4.
- At least 226MHZ Processor.
- 1 core CPU 1.1 GHz
- Disable OS Firewall before installation.
Tutorial: cPanel/WHM Installation on Red Hat Enterprise Linux​
It is straightforward to install cPanel/WHM on Red Hat. After providing the above prerequisites, you are ready to go through the steps of this guide.
Step 1: Update Your Server​
As usual, update your server before starting the installation process.
yum update -y
It will take some time.
Step 2: Add Hostname​
The format of the hostname that cPanel requires is Fully Qualified Domain Name (FQDN). For instance, we’ll use the hostname myeserver.mydomain.com
.
Instead, you should use your own hostname. The command to set it is as follows:
hostnamectl set-hostname myeserver.mydomain.com
Step 3: Disable Network Manager Service​
Computer connections are made through the Network Manager service; while installing cPanel, you are prompted to disable or uninstall this service. So, run:
service NetworkManager stop
chkconfig NetworkManager off
Step 4: Disable SELinux​
Disable these features if your server is running SELinux security measures. Run the command below to disable it. Set the parameter SELINUX
to disabled
in the configuration file /etc/selinux/config
.
# vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Reboot the server after setting the parameter.
Step 5: Install cPanel/WHM on Red Hat​
Now, you are ready to install cPanel/WHM on Red Hat. To do this, simply run the commands below:
cd /home
curl -o latest -L https://securedownloads.cpanel.net/latest
sh latest
It can take some time to finish the cPanel setup.
Step 6: Enable Network Manager Service​
Once the installation is complete, use the commands below to enable this service.
service NetworkManager start
chkconfig NetworkManager on
Step 7: Reboot Your Server​
Rebooting the server is not required, however, you can still restart all installed services using the command listed below.
reboot
The script will now run for a few hours, and following installation, you will receive some output, including the amount of time spent installing as well as the server access URL and access information. You will receive WHM access similar to the URL below:
Access URL:
https://your-server-public-ip:2087
OR
https://server-hostname:2087
Now, you've successfully installed cPanel/WHM on Red Hat Enterprise Linux!